From: Richard M. Stallman Date: Thu, 29 Apr 1993 13:17:56 +0000 (+0000) Subject: (Fexpand_file_name): Undo last change--too risky for now. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96453 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=eabf01d460f4c55fa323e3f4db50490d67f98bfb;p=emacs.git (Fexpand_file_name): Undo last change--too risky for now. --- diff --git a/src/fileio.c b/src/fileio.c index 6c74dccc2ee..563726d1265 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -847,7 +847,10 @@ See also the function `substitute-in-file-name'.") { /* Get rid of any slash at the end of newdir. */ int length = strlen (newdir); - if (length > 1 && newdir[length - 1] == '/') + /* Adding `length > 1 &&' makes ~ expand into / when homedir + is the root dir. People disagree about whether that is right. + Anyway, we can't take the risk of this change now. */ + if (newdir[length - 1] == '/') { unsigned char *temp = (unsigned char *) alloca (length); bcopy (newdir, temp, length - 1);